/*
 * $Id$
 */
package corejs.expr;

import corejs.rt.ActivationRecord;
import corejs.rt.Null;

import corejs.util.XmlPrinter;

/**
 *
 */
public class NullExpr implements Expression {
   
   public static final NullExpr NULL = new NullExpr();
   
   private NullExpr() {}
   
   @Override
   public void print(XmlPrinter printer) {
   }

   @Override
   public Object eval(ActivationRecord scope) {
      return null;
   }

   @Override
   public Null accept(final ExpressionVisitor v) {
      return v.visitNull();
   }
}
